Ext.define("wmf.store.home.tree", {
	extend: 'Ext.data.TreeStore',
	requires: [
	],
	
	/*
	root:{
		id: menu.id,
		text: menu.text,
		expanded: true,
		draggable:false
	},
	*/
	rootVisible: true,
	proxy : {  
        type : 'ajax',  
        url : 'loadTree.do'  
        //url : 'app/test/treeMain.json' 
    },  
    listeners : {  
        beforeload : function(store, operation) {  
            var params = { 
                node : 0 
            };  
            Ext.apply(store.proxy.extraParams, params);
        }  
    },
    /*
	proxy: new Ext.data.HttpProxy({url:'app/test/treeMain.json'}),
	*/
	
	storeId: 'home.tree'
});